package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyReplyQueryObject;
import cn.wolfcode.trip.base.query.UserQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {

    void saveOrUpdate(User u);

    void regist(User u);

    User login(String email, String password);

    PageInfo<User> query(QueryObject qo);

    List<User> list();

    User get(Long id);

    PageInfo<User> queryFollowAndFan(UserQueryObject qo);

    PageInfo queryReceiveComments(StrategyReplyQueryObject qo);

    /*查询所有未读总数*/
    List<Integer> countForAllNoRead(Long userId);
}
